package com.sky.service.impl;

import com.sky.entity.DishFlavor;
import com.sky.mapper.DishFavourMapper;
import com.sky.service.FavorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FacorServiceImpl implements FavorService {
    @Autowired
    private DishFavourMapper dishFavourMapper;


    @Override
    public void save(List<DishFlavor> dishFlavorList) {
          dishFavourMapper.insert(dishFlavorList);
    }

    @Override
    public void DeleteByDishid(List<Long> list) {
         dishFavourMapper.DeleteByDishid(list);
    }
}
